﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;



class MovingLetters
    {
        static void Main(string[] args)
        {
            List<string> input = Console.ReadLine().Split(' ').ToList();

            var extractedLetters = ExtractLetters(input);
            string result = MoveLetters(extractedLetters);
            Console.WriteLine(result);

        }
   
    static StringBuilder ExtractLetters (List<string> words)
        {
            StringBuilder builder = new StringBuilder();

            int maxLengthWord = 0;
            foreach (string word in words)
            {
                if (word.Length > maxLengthWord)
                {
                    maxLengthWord = word.Length;
                }

            }

            for (int i = 0; i < maxLengthWord; i++)
            {
                foreach (string word in words)
                {

                    if (word.Length > i)
                    {
                        builder.Append(word[word.Length - 1 - i]);

                    }

                }

            }
            return builder;
        }

    static string MoveLetters(StringBuilder input)
    {
        
        int movePosition = 0;

        for (int i = 0; i < input.Length; i++)
        {

            if (char.IsLower(input[i]))
            {
                movePosition = input[i] - 'a' + 1 + i;
            }
            else if (char.IsUpper(input[i]))
            {
                movePosition = input[i] - 'A' + 1 + i;
            }

            movePosition %= input.Length;
            char temp = input[i];
            input.Remove(i, 1);

            input.Insert(movePosition, temp);

        }

        return input.ToString();
    }


}

